const method = {
  // 实始化swiper
  initSwiper(state, data) {
    return state.set('swiper', data)
  },

  //设置listData的数据
  setHomeListData(state, data) {
    // return data.get("changeSubPage") ? state.set("saleListData" , data.get("data")) : state.update("saleListData" , value => value.concat(data.get("data")))
    return state.update("homeListData", value => value.concat(data))
  },
  clearData(state, data) {
    return state.set("homeListData", data)
  },
}
export default method